home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Panorama / Panorama - Disk 19D (1987-07-22)(Pacific North-West Amigas Club)[WB].zip / Panorama - Disk 19D (1987-07-22)(Pacific North-West Amigas Club)[WB].adf / PipeHandler1.2 / pipelists.h < prev    next >
C/C++ Source or Header  |  1987-06-28  |  905b  |  35 lines

  1. /****************************************************************************
  2. **  File:       pipelists.h
  3. **  Program:    pipe-handler - an AmigaDOS handler for named pipes
  4. **  Version:    1.1
  5. **  Author:     Ed Puckett      qix@mit-oz
  6. **
  7. **  Copyright 1987 by EpAc Software.  All Rights Reserved.
  8. **
  9. **  History:    05-Jan-87       Original Version (1.0)
  10. */
  11.  
  12.  
  13.  
  14. typedef struct pipelistnode       /* must be first member of list items */
  15.   { struct pipelistnode  *next;
  16.   }
  17. PIPELISTNODE;
  18.  
  19. typedef struct pipelistheader
  20.   { struct pipelistnode  *head;
  21.   }
  22. PIPELISTHEADER;
  23.  
  24.  
  25.  
  26. #define   InitList(headerp)    ((void) ((headerp)->head= NULL))
  27. #define   FirstItem(headerp)   ((headerp)->head)
  28. #define   NextItem(nodep)      (((PIPELISTNODE *) (nodep))->next)
  29.  
  30.  
  31.  
  32. extern void  InsertHead ( /* headerp, nodep */ );
  33. extern void  InsertTail ( /* headerp, nodep */ );
  34. extern void  Delete     ( /* headerp, nodep */ );
  35.